Optimal. Leaf size=12 \[ -\csc (x)+i \tanh ^{-1}(\cos (x)) \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0345983, antiderivative size = 12, normalized size of antiderivative = 1., number of steps used = 2, number of rules used = 2, integrand size = 13, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.154, Rules used = {3501, 3770} \[ -\csc (x)+i \tanh ^{-1}(\cos (x)) \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3501
Rule 3770
Rubi steps
\begin{align*} \int \frac{\csc ^3(x)}{i+\cot (x)} \, dx &=-\csc (x)-i \int \csc (x) \, dx\\ &=i \tanh ^{-1}(\cos (x))-\csc (x)\\ \end{align*}
Mathematica [B] time = 0.0443024, size = 26, normalized size = 2.17 \[ -\csc (x)+i \left (\log \left (\cos \left (\frac{x}{2}\right )\right )-\log \left (\sin \left (\frac{x}{2}\right )\right )\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] time = 0.044, size = 24, normalized size = 2. \begin{align*} -{\frac{1}{2}\tan \left ({\frac{x}{2}} \right ) }-{\frac{1}{2} \left ( \tan \left ({\frac{x}{2}} \right ) \right ) ^{-1}}-i\ln \left ( \tan \left ({\frac{x}{2}} \right ) \right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] time = 1.17078, size = 45, normalized size = 3.75 \begin{align*} -\frac{\cos \left (x\right ) + 1}{2 \, \sin \left (x\right )} - \frac{\sin \left (x\right )}{2 \,{\left (\cos \left (x\right ) + 1\right )}} - i \, \log \left (\frac{\sin \left (x\right )}{\cos \left (x\right ) + 1}\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F] time = 0., size = 0, normalized size = 0. \begin{align*} \frac{{\left (2 \,{\left (e^{\left (4 i \, x\right )} - 2 \, e^{\left (2 i \, x\right )} + 1\right )} e^{\left (2 i \, x\right )}{\rm integral}\left (-\frac{{\left (5 \, e^{\left (5 i \, x\right )} + 6 \, e^{\left (3 i \, x\right )} - 3 \, e^{\left (i \, x\right )}\right )} e^{\left (-2 i \, x\right )}}{2 \,{\left (e^{\left (6 i \, x\right )} - 3 \, e^{\left (4 i \, x\right )} + 3 \, e^{\left (2 i \, x\right )} - 1\right )}}, x\right ) - i \, e^{\left (3 i \, x\right )} + 3 i \, e^{\left (i \, x\right )}\right )} e^{\left (-2 i \, x\right )}}{2 \,{\left (e^{\left (4 i \, x\right )} - 2 \, e^{\left (2 i \, x\right )} + 1\right )}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-2)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: AttributeError} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] time = 1.2884, size = 42, normalized size = 3.5 \begin{align*} -\frac{-2 i \, \tan \left (\frac{1}{2} \, x\right ) + 1}{2 \, \tan \left (\frac{1}{2} \, x\right )} - i \, \log \left ({\left | \tan \left (\frac{1}{2} \, x\right ) \right |}\right ) - \frac{1}{2} \, \tan \left (\frac{1}{2} \, x\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]